#include <pic18.h>
#include <htc.h> 
#include <stdio.h>
#include <stdlib.h>
#include "Init.h"
#include "SysClock.h"
#include "my_macros.h"
#include "App.h"
#include "Outputs.h"
#include "hardware.h"

__CONFIG(1, IESODIS & FCMDIS & RCIO);
__CONFIG(2, BORV27 & BOREN & PWRTEN & WDTDIS & WDTPS32K);
__CONFIG(3, MCLRDIS & HFSTART & LPT1DIS & PBDIGITAL & CCP2RC1);
__CONFIG(4, DEBUGDIS & XINSTDIS & LVPDIS & STVREN);

//Em3wW8tF3hq3
void main ( void )
{
	Init_Device();

	for (;;)
	{
		SysTime();
		//Drive_RF();
		App();
		Out_Drive();
	}
}

